gitUrl=$1
gitBranch=$2
sysName=$3
serverIP=$4
confGitBranch=$5
sourceDir=/opt/source
logsDir=/opt/logs
destDir=/home/wwwroot

servers=`awk 'BEGIN{list="'${serverIP}'";split(list,ip_list,",");for(ip in ip_list){print ip_list[ip];}}'`
for server in ${servers[*]}
do
    scp -r  $sourceDir/config_center.ewt360.com/$sysName/$confGitBranch/.env root@$server:$destDir/$sysName/.env 2>&1|tee $logsDir/${sysName}.log
done

